package com.sh.data.engine.domain.api.model.param;

import com.google.common.collect.Lists;

import java.util.List;

public interface DataApiCommonParam {

    /**
     * 默认每页记录数
     */
    public static final int DEFAULT_PAGESIZE = 2000;

    /**
     * 调用者携带的公钥
     */
    public static final String ACCESSKEY = "accessKey";

    /**
     * 用户id
     */
    public static final String USERID = "userId";

    /**
     * 当前页号
     */
    public static final String PAGENUM = "pageNum";

    /**
     * 页面大小，即每页记录数
     */
    public static final String PAGESIZE = "pageSize";

    /**
     * 总记录数
     */
    public static final String TOTALNUM = "totalNum";

    /**
     * api token
     */
    public static final String APITOKEN = "apiToken";

    /**
     * 公共的请求参数
     */
    public static final List<String> params =
        Lists.newArrayList(ACCESSKEY, USERID, PAGENUM, PAGESIZE, APITOKEN);
}
